﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models
{
    public class Result
    {
        public int code { get; set; }
        public string? msg { get; set; }

        public object? data { get; set; }
    }

    public class Result<T>
    {
        public int code { get; set; }
        public string? msg { get; set; }

        public T? data { get; set; }
    }

    public class PagedResult<T>
    {
        public int code { get; set; }
        public string? msg { get; set; }
        public int total { get; set; }

        public IEnumerable<T>? data { get; set; }
    }
}
